package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.TaskTagAutoDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TaskTagAutoDeviceMapper {
    int deleteById(@Param("id") Long id);

    int insert(TaskTagAutoDevice record);

    int insertSelective(TaskTagAutoDevice record);

    TaskTagAutoDevice selectById(@Param("id") Long id);

    //根据任务id和机器人id查询明细
    TaskTagAutoDevice selectByTaskIdAndDeviceUniqueId(@Param("taskId") Long taskId, @Param("deviceUniqueId") Long deviceUniqueId);

    int updateByIdSelective(TaskTagAutoDevice record);

    int updateById(TaskTagAutoDevice record);
}